<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
  		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<style>
			.layui-body{
				margin-left: -200px;
			}
			.check{
				width: 15px;
				height: 15px;
				border: 1px solid #DADADA;
			}
		</style>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>事项管理</title>
		<link rel="stylesheet" href="/lzproject/CSS/layui.css">
		<link rel="stylesheet" href="/lzproject/CSS/global.css">
		<link rel="stylesheet" href="/lzproject/CSS/red.css">
		<link rel="stylesheet"  href="/lzproject/CSS/layer.css"/>
		<script type="text/javascript" src="/lzproject/Js/jquery.min.js"></script>
		<script type="text/javascript" src="/lzproject/Js/Navigation/layui.js"></script>
		<script type="text/javascript" src="/lzproject/Js/icheck.js"></script>
		<script type="text/javascript" src="/lzproject/Js/dw.js"></script>
	</head>
    
	<body class="layui-layout-body">
	<script type="text/javascript">
	$(document).ready(function() {
		select();
	})

	function select() {
		$.ajax({
			//几个参数需要注意一下
			type : "GET",//方法类型
			dataType : "json",//预期服务器返回的数据类型
			data: {sx_type_id:4},
			url : "/lzproject/sx/get/type.do",
			cache:false,
			success : function(result) {		    
                var carNewsList = "";
                var data = result.data;
                $.each(data, function(index, element) {
                    carNewsList += "<tr><td><input type=\'checkbox\' name=\'id\' value=\'1\'></td><td>"+element.sx_name
                    +"</td><td>"+element.sx_founder+"</td><td>"+element.sx_enterprice+"</td><td>"+element.sx_status
                    +"</td><td class=\'text-center\'><div class=\'layui-btn-group\'><button class=\'layui-btn layui-btn-xs layui-btn-normal dw-dailog\' dw-url=\'addSx.jsp?id=1\' dw-title=\'编辑事项\'>"
					+"<img src=\'/lzproject/Img/img-add.png\' />编辑</button><button class=\'layui-btn layui-btn-xs layui-btn-danger dw-delete\' dw-url=\'delete.html?id=1\' dw-title=\'admin\'>"
					+"<img src=\'/lzproject/Img/img-del.png\' />删除</button></div></td></tr>";           
                });
                $("#tbody").html(carNewsList); 
			},
			error : function() {
				alert("异常！");
			}
		});
	}
</script>
		<div class="layui-layout layui-layout-admin">
			<div class="layui-body">
				<div>
					<fieldset class="layui-elem-field">
						<legend>事项管理——中心工作</legend>
						<div class="layui-field-box">
							<table class="layui-table">
								<colgroup>
									<col width="150">
									<col width="150">
									<col width="200">
								</colgroup>
								<thead>
									<tr>
										<th class="selectAll"><input type="checkbox" class="check"></th>
										<th>项目名</th>
										 <th>事项创建人</th>
                                         <th>事项合作企业</th>
                                          <th>事项状态</th>
										<th style="text-align:center;">操作</th>
									</tr>
								</thead>
								<tbody id="tbody">
									
								</tbody>
							</table>
						</div>
					</fieldset>
				</div>
			</div>
		</div>
		
	</body>

</html>